package com.lee.blog.mapper;

import com.lee.blog.bean.Article;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ArticleMapper {

    List<Article> getHomeArticle(int start, int itemCount);
    List<Article> getNewArticle();
    int getArticleCount();
    void writeArticle(Article article);
    Article getArticleById(int id);
    List<Article> getTechnologyArticle();
    List<Article> getLifeArticle();
    List<Article> getAllArticle();
    void doEdit(Article article);
    void deleteArticleById(int id);
    List<String> getAllLabel();
    List<Article> getArticleByLabel(String label);

}
